package org.kolonitsky.alexey.events {
	
	import flash.events.Event;
	
	public class ViewManagerEvent extends Event {
		public static const END_ZOOM_EVENT:String = "endZoomEvent";
		
		public var scale:Number;
		public var newMapX:Number;
		public var newMapY:Number;
		
		public function ViewManagerEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, 
			mapX:Number=0.0, mapY:Number=0.0, scale:Number=0.0) 
		{
			super(type, bubbles, cancelable);
			this.newMapX = mapX;
			this.newMapY = mapY;
			this.scale = scale;
		}
		
		override public function clone():Event 
		{
			return new ViewManagerEvent(type, bubbles, cancelable, newMapX, newMapY, scale);
		}
	}
}
